package com.yuyou.fn.tms.vo;

import com.yuyou.fn.educational.entity.Teacher;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/2/1.
 */
public class TmsTeacher {
    @ApiModelProperty("老师id")
    private Long teaId ;//老师id

    @ApiModelProperty("老师名称")
    private String teaName ;//老师名称

    @ApiModelProperty("老师编号")
    private String teaCode ;//老师编号

    @ApiModelProperty("证件类别(1--身份证2--护照3--军官证4--其他)")
    private Integer teaCertType ;//证件类别(1--身份证2--护照3--军官证4--其他)

    @ApiModelProperty("证件号码")
    private String teaCertCode ;//证件号码

    @ApiModelProperty("教师性别（男：1，女：2）")
    private Integer teaSex ;//教师性别（男：1，女：2）

    @ApiModelProperty("手机号码")
    private String teaPhone ;//手机号码

    @ApiModelProperty("教师邮箱")
    private String teaEmail ;//教师邮箱

    @ApiModelProperty("任职性质 0:专职 1:外部兼职，2内部兼职")
    private Integer jobNature ;//任职性质 0:专职 1:外部兼职，2内部兼职

    @ApiModelProperty("是否删除（否：0，是：1）")
    private Integer teaIsDelete ;//是否删除（否：0，是：1）

    @ApiModelProperty("教师状态（停用：1，正常：0）")
    private Integer teaState ;//教师状态（停用：1，正常：0）

    @ApiModelProperty("创建时间")
    private Date teaCreateDate ;//创建时间

    @ApiModelProperty("修改时间")
    private Date teaModifyDate ;//修改时间

    @ApiModelProperty("简介")
    private String simpleIntro ;//简介

    @ApiModelProperty("标签")
    private String tags ;//标签

    @ApiModelProperty("签名")
    private String signature ;//签名

    public TmsTeacher(Teacher teacher){
        this.setTeaId(teacher.getTeacherId());//老师id
        this.setTeaName(teacher.getTeacherName());//老师名称
        this.setTeaCode(teacher.getTeacherId().toString());//老师编号
        this.setTeaCertType(1);//证件类别(1--身份证2--护照3--军官证4--其他)
        this.setTeaCertCode(teacher.getIdNo());//证件号码
        this.setTeaSex(teacher.getSex());//教师性别（男：1，女：2）
        this.setTeaPhone(teacher.getPhoneNo());//手机号码
        this.setTeaEmail(teacher.getEmail());//教师邮箱
        this.setJobNature(teacher.getJobNature());//任职性质 0:专职 1:外部兼职，2内部兼职
        this.setTeaIsDelete(0);//是否删除（否：0，是：1）
        this.setTeaState(teacher.getStatus()==1?0:1);//教师状态（停用：1，正常：0）
        this.setTeaCreateDate(teacher.getCreateTime());//创建时间
        this.setTeaModifyDate(teacher.getUpdateTime());//修改时间
        this.setSimpleIntro(teacher.getSimpleIntro());//简介
        this.setTags(teacher.getTags());//标签
        this.setSignature(teacher.getSignature());//签名
    }
    public Long getTeaId() {
        return teaId;
    }

    public void setTeaId(Long teaId) {
        this.teaId = teaId;
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public String getTeaCode() {
        return teaCode;
    }

    public void setTeaCode(String teaCode) {
        this.teaCode = teaCode;
    }

    public Integer getTeaCertType() {
        return teaCertType;
    }

    public void setTeaCertType(Integer teaCertType) {
        this.teaCertType = teaCertType;
    }

    public String getTeaCertCode() {
        return teaCertCode;
    }

    public void setTeaCertCode(String teaCertCode) {
        this.teaCertCode = teaCertCode;
    }

    public Integer getTeaSex() {
        return teaSex;
    }

    public void setTeaSex(Integer teaSex) {
        this.teaSex = teaSex;
    }

    public String getTeaPhone() {
        return teaPhone;
    }

    public void setTeaPhone(String teaPhone) {
        this.teaPhone = teaPhone;
    }

    public String getTeaEmail() {
        return teaEmail;
    }

    public void setTeaEmail(String teaEmail) {
        this.teaEmail = teaEmail;
    }

    public Integer getJobNature() {
        return jobNature;
    }

    public void setJobNature(Integer jobNature) {
        this.jobNature = jobNature;
    }

    public Integer getTeaIsDelete() {
        return teaIsDelete;
    }

    public void setTeaIsDelete(Integer teaIsDelete) {
        this.teaIsDelete = teaIsDelete;
    }

    public Integer getTeaState() {
        return teaState;
    }

    public void setTeaState(Integer teaState) {
        this.teaState = teaState;
    }

    public Date getTeaCreateDate() {
        return teaCreateDate;
    }

    public void setTeaCreateDate(Date teaCreateDate) {
        this.teaCreateDate = teaCreateDate;
    }

    public Date getTeaModifyDate() {
        return teaModifyDate;
    }

    public void setTeaModifyDate(Date teaModifyDate) {
        this.teaModifyDate = teaModifyDate;
    }

    public String getSimpleIntro() {
        return simpleIntro;
    }

    public void setSimpleIntro(String simpleIntro) {
        this.simpleIntro = simpleIntro;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }
}
